package com.mcxx.modules.system.service.write;

import com.mcxx.modules.system.dao.write.IssuingBankWriteDao;
import com.mcxx.modules.system.entity.IssuingBankEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@TaTransactional
public class IssuingBankWriteService {
    @Autowired
    private IssuingBankWriteDao issuingBankWriteDao;


    public int insetIssuingBankList(List<IssuingBankEntity> agentEntityList){
        return issuingBankWriteDao.insetIssuingBankList(agentEntityList);
    }


    public int deleteIssuingBankByTenantid(String tenantId){
        return issuingBankWriteDao.deleteIssuingBankByTenantid(tenantId);
    }


    public int insetIssuingBank(IssuingBankEntity issuingBankEntity){
        return issuingBankWriteDao.insetIssuingBank(issuingBankEntity);
    }


    public int deleteIssuingBankByrescueAreaCode(String rescueAreaCode){
        return issuingBankWriteDao.deleteIssuingBankByrescueAreaCode(rescueAreaCode);
    }

    public int updateIssuingBank(IssuingBankEntity issuingBankEntity){
        return issuingBankWriteDao.updateIssuingBank(issuingBankEntity);
    }

}
